﻿using BoriPeter.FatSecret.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FatSecret.Messages
{
    /// <summary>
    /// Returns the daily exercise entries for the user on a nominated date.
    /// The API will always return 24 hours worth of exercise entries for a given user on a given date. 
    /// These entries will either be "template" entries (which a user may override for any given day of the week) 
    /// or saved exercise entry values.
    ///
    /// Once a user saves or updates the entries on any given day, all entries for that day are saved. 
    /// All adjustments to the day involve reducing the time for an existing activity in order to either 
    /// add or increase the time taken for another activity. The default entries presented for a user 
    /// for a given day of the week can be overridden using exercise_entries.save_template.
    /// </summary>
    public class ExerciseEntriesGet : FatSecretMessageBase<ExerciseEntriesGetModel>
    {
        private const string METHOD_VALUE = "exercise_entries.get";
        private const string DATE = "date";

        public ExerciseEntriesGet()
        {
            AddRequestParameter(METHOD, METHOD_VALUE);
        }

        public ExerciseEntriesGet(DateTime _date)
        {
            AddRequestParameter(METHOD, METHOD_VALUE);
            AddRequestParameter(DATE, _date);
        }
    }
}
